package com.epfresh.views;

import android.app.Dialog;
import android.content.Context;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.epfresh.R;
import com.epfresh.api.utils.LocalDisplay;
import com.epfresh.views.tag.FlowLayout;
import com.epfresh.views.tag.TagAdapter;
import com.epfresh.views.tag.TagFlowLayout;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by wzh on 16-7-8.
 */
public class FilterTag extends RelativeLayout{

    public TextView tvTitle;
    public TextView tvContent;
    public TagFlowLayout tagView;

    public FilterTag(Context context) {
        super(context);
    }

    public FilterTag(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public FilterTag(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }


    @Override
    protected void onFinishInflate() {

        View v = LayoutInflater.from(getContext()).inflate(R.layout.item_category_filter, null, false);
        tvTitle = (TextView) v.findViewById(R.id.tv_title);
        tvContent = (TextView) v.findViewById(R.id.tv_content);
        tagView = (TagFlowLayout) v.findViewById(R.id.t_tag);
        addView(v);
        super.onFinishInflate();
    }
}
